<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://www.etcore.com/grouptalk" prefix="grouptalk"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<head>

<link rel="stylesheet" href="/group/css/styles.css" type="text/css">

</head>
<body bottomMargin=0 leftMargin=10 topMargin=0 rightMargin=10
	marginheight="0">
<table cellpadding=0 cellspacing=0 width=100%>

	<tr>
		<td colspan=2>
		<table width=100% cellspacing=0 cellpadding=0>
			<tr bgcolor="#ffffff">
				<td align=right style="height:40px;" colspan=2><c:set var="pid" value="${startpid }" />
				<c:forEach begin="${startpid }" end="${endpid }" step="1">

					<c:set var="url"
						value="/group/event${context.postfix}?pageid=${pid}" />
					<c:if test='${not empty (param.SY) }'>
						<c:set var="url" value="${url }&SY=${param.SY}" />
					</c:if>
					<c:if test='${not empty (param.SM) }'>
						<c:set var="url" value="${url }&SM=${param.SM}" />
					</c:if>
					<c:if test='${not empty (param.SD) }'>
						<c:set var="url" value="${url }&SD=${param.SD}" />
					</c:if>
					<c:if test='${not empty (param.directoryID) }'>
						<c:set var="url" value="${url }&directoryID=${param.directoryID}" />
					</c:if>
					<c:if test='${not empty (param.showFavourite) }'>
						<c:set var="url"
							value="${url }&showFavourite=${param.showFavourite}" />
					</c:if>
					<c:if test='${not empty (param.showMine) }'>
						<c:set var="url" value="${url }&showMine=${param.showMine}" />
					</c:if>
					<a href="${url }"
						<c:if test='${intpageid==pid }'>style="font-weight:bold;color:red;"</c:if>>[<c:out
						value='${pid}' />]</a>
					<c:set var="pid" value="${pid+1 }" />
&nbsp;&nbsp;</c:forEach> <c:if test="${intpageid>1 }">

					<c:set var="url"
						value="/group/event${context.postfix}?pageid=${intpageid-1}" />
					<c:if test='${not empty (param.SY) }'>
						<c:set var="url" value="${url }&SY=${param.SY}" />
					</c:if>
					<c:if test='${not empty (param.SM) }'>
						<c:set var="url" value="${url }&SM=${param.SM}" />
					</c:if>
					<c:if test='${not empty (param.SD) }'>
						<c:set var="url" value="${url }&SD=${param.SD}" />
					</c:if>
					<c:if test='${not empty (param.directoryID) }'>
						<c:set var="url" value="${url }&directoryID=${param.directoryID}" />
					</c:if>
					<c:if test='${not empty (param.showFavourite) }'>
						<c:set var="url"
							value="${url }&showFavourite=${param.showFavourite}" />
					</c:if>
					<c:if test='${not empty (param.showMine) }'>
						<c:set var="url" value="${url }&showMine=${param.showMine}" />
					</c:if>

					<a href="${url }"> [<c:out value='${context.previous_page}' />]
					</a>
 
&nbsp;
</c:if> <c:if test="${intpageid<pagenums }">

					<c:set var="url"
						value="/group/event${context.postfix}?pageid=${intpageid+1}" />
					<c:if test='${not empty (param.SY) }'>
						<c:set var="url" value="${url }&SY=${param.SY}" />
					</c:if>
					<c:if test='${not empty (param.SM) }'>
						<c:set var="url" value="${url }&SM=${param.SM}" />
					</c:if>
					<c:if test='${not empty (param.SD) }'>
						<c:set var="url" value="${url }&SD=${param.SD}" />
					</c:if>
					<c:if test='${not empty (param.directoryID) }'>
						<c:set var="url" value="${url }&directoryID=${param.directoryID}" />
					</c:if>
					<c:if test='${not empty (param.showFavourite) }'>
						<c:set var="url"
							value="${url }&showFavourite=${param.showFavourite}" />
					</c:if>
					<c:if test='${not empty (param.showMine) }'>
						<c:set var="url" value="${url }&showMine=${param.showMine}" />
					</c:if>
					<a href="${url }"> [<c:out value='${context.next_page}' />] </a>
		 
			 
&nbsp;
</c:if></td>
			</tr>

		</table>

		</td>
	</tr>


	<c:if test="${all>0 }">
		<tr>
			<td align=left height=15 colspan=2 style="border-bottom:1px solid #d2d4d2;color:#808080">${context.text_start }:${startDate },  ${context.text_end }:${endDate },    ${context.text_all}:<font color=red><c:out
				value='${all }' /></font>&nbsp;<c:out value='${context.text_item}' /> </td>
		</tr>

	</c:if>
	<c:if test="${all==0 }">
		<tr>
			<td align=center style="font-size: 12px; color: red;">${context.default_none
			}</td>
		</tr>

	</c:if>

	<c:set var="eventCount" value="0" />
	<c:forEach var="event" items="${targetTableEvents}">
		<c:set var="gmid" value='${event.key}' />
		<tr id="<c:out value='${groupMap[gmid]}'  />" style="overflow:hidden;">
			<td id="<c:out value='${topicMap[gmid]}'  />" align=left width=100%
				nowrap>
			<div style="width: 100%; overflow: hidden;"><c:out
				value="${event.value}" escapeXml="false" /></div>

			</td>

		</tr>

	</c:forEach>













	<tr>
		<td height=30></td>
	</tr>



</table>


</body>

